<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background: red;
        }
    </style>
</head>
<body>

    <div onmouseover="f1()">
        div
    </div>

    <button ondblclick="f('1', '2')">点击</button>


    <script>

        function f(str1,  str2) {
            alert(str1 + str2)
        }


        function f1() {
            console.log(Math.random())
        }


    </script>

</body>
</html>
